<?php
$data = array("records" => array(array("id" =>"1", "name" =>"Bob"),array("id" =>"2", "name" =>"John"),array("id" =>"3", "name" =>"James")));
header('Content-Type =>  application/json');
echo json_encode($data);